<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>赛程管理</title>
  <link rel="stylesheet" type="text/css" href="/css/jquery.pagination.css" />
  <link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.css" />
  <link rel="stylesheet" type="text/css" href="/css/style.css" />
  <script type="text/javascript" src="/js/jquery.js"></script>
  <script type="text/javascript" src="/js/bootstrap.js"></script>
  <script type="text/javascript" src="/js/ckform.js"></script>
  <script type="text/javascript" src="/js/common.js"></script>
  <script type="text/javascript" src="/js/jquery.pagination.min.js"></script>
  <!--    <script>-->
  <!--        $(function() {-->
  <!--            var cp=parseInt($("#curPage").val());-->
  <!--            var tp=parseInt($("#tolPage").val());-->
  <!--            $("#pagination2").pagination({-->
  <!--                currentPage:cp,-->
  <!--                totalPage:tp,-->
  <!--                isShow: false,-->
  <!--                count: 5,-->
  <!--                prevPageText: "< 上一页",-->
  <!--                nextPageText: "下一页 >",-->
  <!--                callback: function(current) {-->
  <!--                    location.href='/book/list/'+current;-->
  <!--                }-->
  <!--            });-->
  <!--        });-->
  <!--    </script>-->
</head>
<body>
<form id="form" class="form-inline definewidth m20"
      action="/findByTeam" method="post">
  赛程查询： <input type="text" name="team" id="team"
               class="abc input-default" placeholder="请输入队伍名">&nbsp;&nbsp;
  <button type="submit" class="btn btn-primary">查询</button>
  <a type="button" class="btn btn-primary" th:href="'/addSchedulePage'">添加赛程</a>
</form>
<table class="table table-bordered table-hover definewidth m10">
  <thead>
  <tr>
    <th>序号</th>
    <th>主队</th>
    <th>客队</th>
    <th>比赛时间</th>
    <th>直播平台</th>
    <th>所在联赛</th>

  </tr>
  </thead>
  <tr th:each="list:${list}">
    <td th:text="${list.id}"></td>
    <td th:text="${list.hometeam}"></td>
    <td th:text="${list.guestteam}"></td>
    <td th:text="${list.time}"></td>
    <td th:text="${list.platform}"></td>
    <td th:text="${list.league}"></td>
    <td><a type="button" class="btn btn-success" th:href="'/removeBySchedule?id='+${list.id}">删除</a>
      <a type="button" class="btn btn-success" th:href="'/findById1?id='+${list.id}">修改</a>
    </td>
  </tr>
</table>
<!--<input th:value="${page.currentPage}" type="hidden" id="curPage"/>-->
<!--<input th:value="${page.totalPage}" type="hidden" id="tolPage"/>-->
<center>
  <div class="box">
    <div id="pagination2" class="page fl"></div>
  </div>
</center>
</body>

</html>